package gm.server;

/**
 * Kivitelezhetetlen pozíció kivétele.
 *
 * @author imruf84
 */
public class WrongPositionException extends Exception {

    private final double x;
    private final double y;

    /**
     * Konstruktor.
     *
     * @param x x
     * @param y y
     */
    public WrongPositionException(double x, double y) {
        this.x = x;
        this.y = y;
    }

    @Override
    public String getLocalizedMessage() {
        return "Wrong position:[" + x + ";" + y + "]";
    }
}
